7 typedef unsigned long long ull
;
15 for (ull i
= 1; i
< 2642246; ++i
){
16 cubos
.insert(cubos
.end(), i
*i
*i
);
18 /*set<ull>::iterator i = cubos.end();
20 cout << (*i) << endl;*/
23 set
<ull
>::iterator i
= cubos
.upper_bound(n
);
24 cout
<< "(*i) es: " << (*i
) << endl
;
25 if (i
!= cubos
.end()){
26 set
<ull
>::iterator j
= cubos
.find((*i
) - n
);
27 if (j
!= cubos
.end()){
28 cout
<< "(*j) es: " << (*j
) << endl
;
29 cout
<< (ull
)pow((*i
), 1./3.) << " " << (ull
)pow((*j
), 1./3.) << endl
;
31 cout
<< "No solution\n";
34 cout
<< "No solution\n";